package cn.anosi.entity.auth;

import javax.persistence.Entity;
import javax.persistence.Id;


/**
 * Permission
 * 描述: 权限/菜单
 * 创建人: 刘彦硕
 * 创建时间: 2017-06-30 15:12:37
 */
@Entity
public class Permission {

	private Integer id;
	private String name;
	// menu：菜单  permission: 权限
	private String type;
	private String link;
	private String percode;
	private String css;
	//排序码
	private Integer sortId;
	private Integer pId;

	@Id
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getPercode() {
		return percode;
	}

	public void setPercode(String percode) {
		this.percode = percode;
	}

	
	public Integer getpId() {
		return pId;
	}

	public void setpId(Integer pId) {
		this.pId = pId;
	}

	public Integer getSortId() {
		return sortId;
	}

	public void setSortId(Integer sortId) {
		this.sortId = sortId;
	}

	public String getCss() {
		return css;
	}

	public void setCss(String css) {
		this.css = css;
	}

	@Override
	public String toString() {
		return "Permission [id=" + id + ", name=" + name + ", type=" + type + ", link=" + link + ", percode=" + percode
				+ ", css=" + css + ", sortId=" + sortId + ", pId=" + pId + "]";
	}
}
